package com.lds.memory.kafka.enums;

public enum ErrorEnum implements IErrorEnum {
    SYSTEM_ERROR("00000", "系统错误"),

    TOPIC_NAME_IS_EMPTY("10000", "topic name is not empty"),

    PARTITION_ENQUEUE_EXCEPTION("20000", "partition enqueue exception"),

    REPEAT_REGISTER_TOPIC("10001", "repeat register topic"),
    ;

    private String errorCode;
    private String errorMessage;

    ErrorEnum(String errorCode, String errorMessage) {
        this.errorCode = errorCode;
        this.errorMessage = errorMessage;
    }

    public String getErrorCode() {
        return errorCode;
    }

    public String getErrorMessage() {
        return errorMessage;
    }

}
